<script lang="ts" setup>
  import { onLoad } from '@dcloudio/uni-app';
  import { reactive } from 'vue';

  let datas = reactive<any>({
    nav: '我的博客',
    url: '',
  });
  interface OPTIONS {
    nav: string;
    url: string;
  }
  onLoad((options: OPTIONS) => {
    console.log('options: ', options);
    uni.setNavigationBarTitle({ title: datas.nav });
    datas.url = 'https://jourfreedom.github.io/';
  });
</script>

<template>
  <view v-if="datas.url">
    <web-view :src="datas.url" />
  </view>
</template>

<style lang="scss" scoped></style>
